cmake_minimum_required(VERSION 3.12)
set(PROJECT_NAME KPT_v3)
project(${PROJECT_NAME})
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED FALSE)

add_subdirectory(src/runtime)
add_subdirectory(src/editor)

file(GLOB SRC_FILES src/*.cpp)
file(GLOB HEADER_FILES src/*.h)

include_directories(src)
include_directories(src/runtime/vendor/glad/include)

add_executable(${PROJECT_NAME} ${SRC_FILES} ${HEADER_FILES})

target_link_libraries(${PROJECT_NAME} KPT_v3-runtime)